#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int arr[100];
void quicksort( int left, int right)
{
	int i = left;
	int j = right;
	int tmp = arr[left];
	if (left > right)
		return ;
	while(i!=j)
	{
		while (j > i && arr[j] >= tmp)
			j--;
		while (i < j && arr[i] <= tmp)
			i++;
		if (j > i)
		{
			int k = arr[i];
			arr[i] = arr[j];
			arr[j] = k;
		}
	}
	arr[left] = arr[i];
	arr[i] = tmp;
	quicksort( left, i-1);
	quicksort( i+1, right);
	return ;
}
int main()
{
	int n;
	
	scanf("%d", &n);
	for (int i = 1; i <= n; i++)
	{
		scanf("%d", &arr[i]);
	}
	quicksort( 1, n);
	for (int i = 1; i <= n; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}